<!DOCTYPE html>
<html>
<head>
<title>岗位信息</title>
<jsp:include page="../../include/header.jsp" />
</head>
<body class="">
<div class="breadcrumb">
	<a class="btn btn-success btn-small" href="base/position/position!preUpdate.action?id=${position.id}">编辑</a>
	<a class="btn btn-success btn-small" href="base/position/position!preAddEmployeeToPosition.action?id=${position.id}">添加人员</a>
</div>
<table class="table entity-view-table">
	<tr>
		<td>编号:</td>
		<td>${position.code}</td>
	</tr>
	<tr>
		<td>名称:</td>
		<td>${position.name}</td>
	</tr>
	<tr>
		<td>所属部门:</td>
		<td></td>
	</tr>
	<tr>
		<td>岗位级别:</td>
		<td>${position.rank.name}</td>
	</tr>
	<tr>
		<td>定编:</td>
		<td>${position.maxSize}</td>
	</tr>
	<tr>
		<td>显示顺序:</td>
		<td>${position.dsporder}</td>
	</tr>
	<tr>
		<td>描述:</td>
		<td>${position.description}</td>
	</tr>
</table>
<div class="breadcrumb">
成员
</div>
<table class="table">
<c:forEach var="employee" items="${position.employees}">
	<tr>
		<td>${employee.name}</td>
		<td>
			<c:if test="${employee.department ne null}">${employee.department.name}</c:if>
		</td>
		<td>
			<a class="btn btn-danger btn-small" 
				href="base/position/position!removeEmployeeFromPosition.action?id=${position.id}&employeeId=${employee.id}">删除</a>
		</td>
	</tr>
</c:forEach>
</table>
</body>
</html>